// src/logs.js
import request from '@/utils/request'

/**
 * 分页查询操作日志
 * @param {Object} params { pageNum, pageSize, operator, startTime, endTime }
 */
export function pageLogs(params) {
    return request.get('/admin/activity-logs', { params })
}

/** 获取某条日志详情 */
export function getLog(id) {
    return request.get(`/admin/activity-logs/${id}`)
}

/** 批量删除日志 */
export function deleteLogs(ids) {
    return request.delete('/admin/activity-logs', {
        params: { ids }
    })
}
